package com.leonzhangxf.guice.bill.domain;

/**
 * The charge result.
 *
 * @author leonzhangxf
 */
public class ChargeResult {

    private boolean successful;

    private String declineMessage;

    public ChargeResult(boolean successful, String declineMessage) {
        this.successful = successful;
        this.declineMessage = declineMessage;
    }

    public boolean wasSuccessful() {
        return successful;
    }

    public String getDeclineMessage() {
        return declineMessage;
    }

    @Override
    public String toString() {
        return "ChargeResult{" +
            "successful=" + successful +
            ", declineMessage='" + declineMessage + '\'' +
            '}';
    }
}
